package org.springblade.modules.admin.vo.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description 一键排期check
 * @Author ysq
 * @Date 2022/3/12
 **/
@Data
public class PlanCheckParam {

	@ApiModelProperty(value = "电梯id集合,多个逗号隔开")
	@NotNull(message = "电梯id不能为空")
	private String elevatorIds;


	@ApiModelProperty(value = "服务开始时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "服务开始时间不能为空")
	private Date startTime;

	@ApiModelProperty(value = "服务结束时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "服务结束时间不能为空")
	private Date endTime;

}
